﻿using PMS.Web.Framework.Models;
using System;
using System.ComponentModel;

namespace PMS.Web.Models.Messages
{
    public partial class QueuedEmailModel : BaseEntityModel
    {
        /// <summary>
        /// Use when SendEmail to Customer
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// Gets or sets the To property (email address)
        /// </summary>
        [DisplayName("邮箱地址")]
        public string To { get; set; }

        /// <summary>
        /// Gets or sets the ToName property
        /// </summary>
        [DisplayName("收件人")]
        public string ToName { get; set; }

        /// <summary>
        /// Gets or sets the subject
        /// </summary>
        [DisplayName("邮件标题")]
        public string Subject { get; set; }

        [DisplayName("抄送")]
        public string CC { get; set; }
        /// <summary>
        /// Gets or sets the body
        /// </summary>
        [DisplayName("邮件内容")]
        public string Body { get; set; }

        [DisplayName("附件名称")]
        public string AttachmentFileName { get; set; }

        /// true: 邮件正常队列排队等待发送
        /// false:邮件取消发送
        [DisplayName("发送状态")]
        public bool IsActive { get; set; }

        /// <summary>
        /// Gets or sets the date and time in UTC before which this email should not be sent
        /// </summary>
        [DisplayName("计划发送时间")]
        public DateTime? DontSendBeforeDate { get; set; }
        /// <summary>
        /// Gets or sets the sent date and time
        /// </summary>
        [DisplayName("发送时间")]
        public DateTime? SentOnTime { get; set; }

    }
}
